package com.ruoyi.cs.domain.dto.battle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;

/**
 * @ClassName BattleInfoResp
 * @Description TODO
 * @Author zz
 * @Date 2024/2/25
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BattleInfoResp implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "对战房间ID")
    private String battleId;

    @ApiModelProperty(value = "花费金额")
    private BigDecimal homeownerCost;

    @ApiModelProperty(value = "对战的状态： 0-等待中  1-对战中  2-已结束 ")
    private String battleStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "对战时间")
    private Date battleTime;

    @ApiModelProperty(value = "对战模式 对战模式 0 欧皇对战 1 非酋对战")
    private Integer battleMode;

    @ApiModelProperty(value = "对战类型 0会员对战 1官方对战 2 AI对战 3 粉丝对战")
    private String battleType;

    @ApiModelProperty(value = "粉丝对战房间是否需要密码")
    private Boolean isFanPwd;

    @ApiModelProperty(value = "对战人数")
    private Integer battleNum;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "房主ID")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String homeownerUserid;

    @ApiModelProperty(value = "是否房主")
    private Boolean isHomeUser=false;

    @ApiModelProperty(value = "对战箱子及其饰品信息")
    private List<BattleBoxVo> battleBoxList;

    @ApiModelProperty(value = "对战用户信息")
    private List<BattleUserInfoDTO> battleUserList;

}
